package eSchool.BL;

import eSchool.DataLayer.DAOFactory;
import eSchool.DataLayer.IAlunoInscritoDAO;
import eSchool.DataLayer.IDisciplinaInscritoDAO;


public class DisciplinasInscrito extends BasicListObject<DisciplinaInscrito> implements IDadosEntidade {

    AlunoInscrito alunoInscrito = new AlunoInscrito();
    
    public DisciplinasInscrito () {
    }

    public DisciplinasInscrito (CriteriosPesquisa criterios) throws Exception {
        this.leDados(criterios);
    }

    
    @Override
    public int getColumnCount() {
        return alunoInscrito.getColumnCount();
    }

    @Override
    public String getColumnName(int columnIndex) {
        return alunoInscrito.getColumnName(columnIndex);
    }

    @Override
    public Class<?> getColumnClass(int columnIndex) {
       return alunoInscrito.getColumnClass(columnIndex);
    }
    
    
    public Object getValueAt(int rowIndex, int columnIndex){
           return this.get(rowIndex).getValueAt(0, columnIndex);
    } 

    public void setValueAt(Object aValue, int rowIndex, int columnIndex){
            this.get(rowIndex).setValueAt(aValue, 0, columnIndex);
    }

    @Override
    public void leDados() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    public void leDados(CriteriosPesquisa criterios) throws Exception {
         DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.ACCESS);
         IDisciplinaInscritoDAO disciplinaInscritoDAO = factory.getDisciplinaInscritoDAO();           
         disciplinaInscritoDAO.selectDisciplinaInscritoTO(this, criterios);
    }

    @Override
    public void gravaDados() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String[][] toStringArray() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}

